package com.bdqn.dao.impl;

import com.bdqn.dao.NewsDao;
import com.bdqn.logger.Log;
import com.bdqn.pojo.News;
import org.springframework.stereotype.Repository;

/**
 * NewsDaoRedisImpl
 *
 * @author LILIBO
 * @since 2024/7/4
 */
@Repository("newsDao")
public class NewsDaoRedisImpl implements NewsDao {

    /**
     * 保存新闻
     *
     * @param news
     * @return
     */
    @Log("保存新闻")
    @Override
    public int save(News news) {
        System.out.println("【NewsDaoRedisImpl】新闻保存成功！");
        return 1;
    }

}
